package week3;

import java.util.Scanner;

public class q1 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("身高:(单位：m）");
        double height= sc.nextDouble();
        System.out.println("体重：(单位:kg)");
        double weight= sc.nextDouble();
        double bmi=weight/(height*height);
        System.out.println("你的bmi值："+bmi);
        if(bmi<18.4) {
            System.out.println("偏瘦");
        }else if (bmi>=18.5&&bmi<=23.9){
            System.out.println("正常");
        }else if(bmi>=24.0&&bmi<=27.9){
            System.out.println("稍微超重");
        }else {
            System.out.println("超重");
        }

    }
}
